package client.gui;

import java.awt.Color;
import java.awt.Dimension;

import javax.swing.BorderFactory;
import javax.swing.JLabel;

import client.DutyFree;

public class DutyFreeInfoPanel extends ItemPanel {
    private static final long serialVersionUID = -8635439676859968674L;
	JLabel offerName;
	JLabel offerLocation;
	JLabel offerPhone;
	JLabel offerEmail;
	int offerRef;
	
	public DutyFreeInfoPanel(DutyFree df){
		offerName = new JLabel(df.getName());
		offerLocation = new JLabel(df.getLocation());
		offerPhone = new JLabel(df.getPhone());
		offerEmail = new JLabel(df.getEmail());
		offerRef = df.getRef();
		init();
	}
	
	private void init() {
		add(offerName);
		add(offerLocation);
		add(offerPhone);
		add(offerEmail);
		setPreferredSize(new Dimension(750,30));
		setBorder(BorderFactory.createLineBorder(Color.black));
   }

	public int getRef(){
		return offerRef;
	}

}
